<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			var num1=prompt("请输入第一个数字");
			if(num1==null){alert("不能为空！！");}
			else{
			var num2=prompt("请输入第二个数字");
			if(num2==null){alert("不能为空！！");}
			else if(parseInt(num1)>parseInt(num2)){
				alert(num1);
			}else if(parseInt(num1)<parseInt(num2)){
				alert(num2);
			}else{alert(num2);}}
			
		</script>
	</body>
</html>
